package com.hnucm.cooklife.contract.me;

import com.hnucm.cooklife.base.IBaseView;
import com.hnucm.cooklife.bean.db.Work;

import java.util.List;

import io.reactivex.Observable;

public class Contract {
    public interface IMeWorkModel{
        Observable<List<Work>> loadMyWork(int userId);
        Observable<List<Work>> refreshMyWork(int userId);
    }

    public interface IMeWorkView extends IBaseView{
        void onLoadMyWork(List<Work> workList);
        void onRefreshMyWork(List<Work> workList);
    }

    public interface IMeWorkPresenter{
        void loadMyWork(int userId);
        void refreshMyWork(int userId);
    }
}
